const { override, fixBabelImports, addWebpackAlias } = require('customize-cra')
const path = require('path')

module.exports = override(
  /* 按需加载 antd-mobile */
  fixBabelImports('import', {
    libraryName: 'antd-mobile',
    style: 'css',
  }),
  
  /* 别名 */
  addWebpackAlias({
    '@': path.resolve(__dirname, './src')
  })
)
